package cn.wolfcode.enums;

import lombok.Getter;

@Getter
public enum QuestionTypeEnum {
    /*枚举需要用的是,隔开*/
   SINGLE("单选",1),
    MULITPLE("多选",2),
    JUDGEMENT("判断",3);

    private Integer value;
    private String name;

    //枚举类的构造器本来就是私有的
    private QuestionTypeEnum(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    /*public Integer getValue(){
        //获取所有的枚举常量，然后遍历并返回它的name
        QuestionTypeEnum[] values = QuestionTypeEnum.values();
        //所有的枚举常量
        for (QuestionTypeEnum questionTypeEnum : values) {
            questionTypeEnum.getValue();
        }
        return null;
    }*/
}
